package org.to_zero.springboot.security.entity;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

@Data
public class SysAuth implements GrantedAuthority {
    /**
     * 主键id
     */
    private Integer id;

    /**
     * 权限名
     */
    private String authName;

    /**
     * 权限请求
     */
    private String authUrl;

    private static final long serialVersionUID = 1L;

    @Override
    public String getAuthority() {
        return this.authUrl;
    }
}

